import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { UserComponent } from './user.component';
import { AddressComponent } from './components/address/address.component';
import { ProfileComponent } from './components/profile/profile.component';
import { OrderComponent } from './components/order/order.component';

// 自定义服务
import { CommonService } from './service/common.service';


@NgModule({
  // user模块里面的组件
  declarations: [UserComponent, AddressComponent, ProfileComponent, OrderComponent],
  exports: [UserComponent, AddressComponent],    // 暴露组件，让其他模块可以使用该组件
  providers: [CommonService],
  imports: [
    CommonModule
  ]
})
export class UserModule { }
